package com.sanbi.erp.core.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Desc:
 * @Data: 2022/8/5 17:12
 * @Author: WuHang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDto {
    //批发价
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal wholesalePrice;

    //零售价
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal retailPrice;

    //历史批发价
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal historyWholesalePrice;

    //历史零售价
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal historyRetailPrice;

    //单件货品价格
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal price;

    //货品数量
    private Integer number;

    //优选类型：1 历史优选，2 今日优选，3 即将开市
    private Byte bestType;

    //优选日期
    private LocalDateTime bestDate;

    //起批数量
    private Integer wholesaleNumber;
}
